import React, { Component } from 'react';
import { HashRouter as Router, Route, Switch } from 'react-router-dom'

import './App.less';

import Admin from './pages/admin'
import Login from './pages/login'
class App extends Component {

  render() {

    return (

        <Router>
          <Switch>
            <Route path="/login" component={Login}></Route>
            <Route path="/" component={Admin}></Route>
          </Switch>
        </Router>
    );
  }
}

export default App;